<h1>Store#index</h1>

<% for product in @products -%>
	<div class="entry">
		<img src="<%=product.img_url%>" />
		<h3><%=h(product.name)%></h3>
		<%=product.desc%><br/>
		<span class="price"><%=number_to_currency(product.price)%></span>
		<% form_remote_tag(:url =>{:action => :add_to_cart,:id=>product}) do%>
			<%=submit_tag("add to cart")%>
		<% end%>
		<%=button_to('add cart', {:action=>:add_to_cart,:id=>product})%>
	</div>
<% end %>
